

<include file="Public/head"/><body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>
            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <div class="actions-bar clearfix" style="margin-top:15px">
                            <form class="form-inline search-form" action="" method="get">
                                <div class="input-group pull-right">
                                    <input type="text" name="name" placeholder="小说名称" style="width:auto;">
                                    <input type="hidden" name="is_online" value="1" />
                                    <span class="input-group-btn">
                                        <button type="submit" class="btn btn-sm btn-primary"><i class="fa fa-search"></i></button>
                                    </span>
                                </div>
                            </form>


                            <ul class="kongzhi nav nav-pills nav-pills-sm pull-left" style="margin-top:3px">
                                <li class="<if condition='$xz eq 1'>active<else /></if>"><a href="{:U('medianovel',array('p'=>1))}">全部</a></li>
                                <li class="<if condition='$xz eq x'>active<else /></if>"><a href="{:U('medianovel',array('manp'=>1,'p'=>1))}">男频</a></li>
                                <li class="<if condition='$xz eq o'>active<else /></if>"><a href="{:U('medianovel',array('womanp'=>1,'p'=>1))}">女频</a></li>
                                <li class="<if condition='$xz eq h'>active<else /></if>"><a href="{:U('medianovel',array('is_flag'=>1,'p'=>1))}">热门</a></li>
                            </ul>
                        </div>

                        <div class="space-4"></div>
                        <form id="form" method="post" action="">
                            <table class="table table-striped table-bordered">
                                <thead>
                                <tr>
                                    <th class="col-xs-1">封面</th>
                                    <th class="col-xs-3">名称</th>
                                    <th class="col-xs-1 text-center">男生/女生</th>
                                    <th class="col-xs-1">状态</th>
                                    <th>主编推荐(越小越靠前)<a href="{:U('medianovel',array('order_set'=>1,'p'=>1))}">排列</a></th>
                                    <th>首页轮播排序(升序)<a href="{:U('medianovel',array('flow_set'=>1,'p'=>1))}">排列</a></th>

                                    <th>总阅读量排序(降序)<a href="{:U('medianovel',array('click_count'=>1,'p'=>1))}">排列</a></th>



                                </tr>
                                </thead>
                                <tbody>

                                <volist name="list" id="val">
                                    <tr>
                                        <td><img src= "{:C('FILE_HOST_PATH')}{$val['img']}" style='margin-left: 35px ; width:50px' /></td>
                                        <td><a href="{:U('chapter',array('id'=>$val['id']))}" style="font-size: 14px"><iclass="ace-icon fa fa-pencil bigger-100"></i>[{$val['class_name']}]{$val['name']}</a>[<span style="font-size: 11px"><if condition="$val['is_end'] eq 1">完结<else />连载中</if></span>]<if condition="$val['is_flag'] eq 1"><span type="button" class="btn-xs btn-danger">热门</span><else /><span type="button" class="btn-xs btn-info">普通</span></if><br/><if condition="empty($val['chapter']) eq 0">共{$val.chapter}章<else /></if></td>
                                        <td class="text-center">{$val['other_class_name']}</td>
                                        <td><if condition="$val['is_shelf'] eq 1"><span type="button" class="btn-sm btn-success" title="{$val['publish_time']}">已上架</span><else /><span type="button" class="btn-sm btn-danger">已下架</span></if></td>
                                        <td class="text-center">{$val['order_set']}</td>
                                        <td class="text-center">{$val['flow_set']}</td>
                                        <td class="text-center">{$val['click_count']}</td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                        </form>
                        <div class="cf">

                        </div>
                        {$page}
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {
        //搜索显示
        $(".kongzhi li").click(function (){
            $(this ).addClass('active');
            $(this).siblings().removeClass('active');
        });



        $(".check-all").click(function () {
            $(".aids").prop("checked", this.checked);
        });
        $(".aids").click(function () {
            var option = $(".ids");
            option.each(function (i) {
                if (!this.checked) {
                    $(".check-all").prop("checked", false);
                    return false;
                } else {
                    $(".check-all").prop("checked", true);
                }
            });
        });

        $("#submit").click(function () {
            bootbox.confirm({
                title: "系统提示",
                message: "是否要删除所选文章？",
                callback: function (result) {
                    if (result) {
                        $("#form").submit();
                    }
                },
                buttons: {
                    "cancel": {"label": "取消"},
                    "confirm": {
                        "label": "确定",
                        "className": "btn-danger"
                    }
                }
            });
        });
        $(".del").click(function () {
            var url = $(this).attr('val');
            bootbox.confirm({
                title: "系统提示",
                message: "是否要该文章？",
                callback: function (result) {
                    if (result) {
                        window.location.href = url;
                    }
                },
                buttons: {
                    "cancel": {"label": "取消"},
                    "confirm": {
                        "label": "确定",
                        "className": "btn-danger"
                    }
                }
            });
        });
    })
</script>
</body>
</html>
